<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GstRTPBaseAudioPayload: GStreamer Base Plugins 1.0 Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual">
<link rel="up" href="gstreamer-rtp.html" title="RTP Library">
<link rel="prev" href="gst-plugins-base-libs-GstMeta-for-RTP.html" title="GstMeta for RTP">
<link rel="next" href="GstRTPBaseDepayload.html" title="GstRTPBaseDepayload">
<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GstRTPBaseAudioPayload.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GstRTPBaseAudioPayload.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GstRTPBaseAudioPayload.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="gstreamer-rtp.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gst-plugins-base-libs-GstMeta-for-RTP.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GstRTPBaseDepayload.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GstRTPBaseAudioPayload"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GstRTPBaseAudioPayload.top_of_page"></a>GstRTPBaseAudioPayload</span></h2>
<p>GstRTPBaseAudioPayload — Base class for audio RTP payloader</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-frame-based" title="gst_rtp_base_audio_payload_set_frame_based ()">gst_rtp_base_audio_payload_set_frame_based</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-frame-options" title="gst_rtp_base_audio_payload_set_frame_options ()">gst_rtp_base_audio_payload_set_frame_options</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-sample-based" title="gst_rtp_base_audio_payload_set_sample_based ()">gst_rtp_base_audio_payload_set_sample_based</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-sample-options" title="gst_rtp_base_audio_payload_set_sample_options ()">gst_rtp_base_audio_payload_set_sample_options</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstAdapter.html#GstAdapter-struct"><span class="returnvalue">GstAdapter</span></a> *
</td>
<td class="function_name">
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-get-adapter" title="gst_rtp_base_audio_payload_get_adapter ()">gst_rtp_base_audio_payload_get_adapter</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
</td>
<td class="function_name">
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-push" title="gst_rtp_base_audio_payload_push ()">gst_rtp_base_audio_payload_push</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
</td>
<td class="function_name">
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-flush" title="gst_rtp_base_audio_payload_flush ()">gst_rtp_base_audio_payload_flush</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-samplebits-options" title="gst_rtp_base_audio_payload_set_samplebits_options ()">gst_rtp_base_audio_payload_set_samplebits_options</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody><tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GstRTPBaseAudioPayload.html#GstRTPBaseAudioPayload--buffer-list" title="The “buffer-list” property">buffer-list</a></td>
<td class="property_flags">Read / Write</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GstRTPBaseAudioPayload.html#GstRTPBaseAudioPayload-struct" title="struct GstRTPBaseAudioPayload">GstRTPBaseAudioPayload</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GstRTPBaseAudioPayload.html#GstRTPBaseAudioPayloadClass" title="struct GstRTPBaseAudioPayloadClass">GstRTPBaseAudioPayloadClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
        <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a>
            <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a>
                <span class="lineart">╰──</span> <a class="link" href="GstRTPBasePayload.html" title="GstRTPBasePayload">GstRTPBasePayload</a>
                    <span class="lineart">╰──</span> GstRTPBaseAudioPayload
</pre>
</div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;gst/rtp/rtp.h&gt;
</pre>
</div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.description"></a><h2>Description</h2>
<p>Provides a base class for audio RTP payloaders for frame or sample based
audio codecs (constant bitrate)</p>
<p>This class derives from GstRTPBasePayload. It can be used for payloading
audio codecs. It will only work with constant bitrate codecs. It supports
both frame based and sample based codecs. It takes care of packing up the
audio data into RTP packets and filling up the headers accordingly. The
payloading is done based on the maximum MTU (mtu) and the maximum time per
packet (max-ptime). The general idea is to divide large data buffers into
smaller RTP packets. The RTP packet size is the minimum of either the MTU,
max-ptime (if set) or available data. The RTP packet size is always larger or
equal to min-ptime (if set). If min-ptime is not set, any residual data is
sent in a last RTP packet. In the case of frame based codecs, the resulting
RTP packets always contain full frames.</p>
<div class="refsect3">
<a name="id-1.2.9.4.8.4"></a><h4>Usage</h4>
<p>To use this base class, your child element needs to call either
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-frame-based" title="gst_rtp_base_audio_payload_set_frame_based ()"><code class="function">gst_rtp_base_audio_payload_set_frame_based()</code></a> or
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-sample-based" title="gst_rtp_base_audio_payload_set_sample_based ()"><code class="function">gst_rtp_base_audio_payload_set_sample_based()</code></a>. This is usually done in the
element's <code class="function">_init()</code> function. Then, the child element must call either
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-frame-options" title="gst_rtp_base_audio_payload_set_frame_options ()"><code class="function">gst_rtp_base_audio_payload_set_frame_options()</code></a>,
<a class="link" href="GstRTPBaseAudioPayload.html#gst-rtp-base-audio-payload-set-sample-options" title="gst_rtp_base_audio_payload_set_sample_options ()"><code class="function">gst_rtp_base_audio_payload_set_sample_options()</code></a> or
gst_rtp_base_audio_payload_set_samplebits_options. Since
GstRTPBaseAudioPayload derives from GstRTPBasePayload, the child element
must set any variables or call/override any functions required by that base
class. The child element does not need to override any other functions
specific to GstRTPBaseAudioPayload.</p>
</div>
</div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gst-rtp-base-audio-payload-set-frame-based"></a><h3>gst_rtp_base_audio_payload_set_frame_based ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtp_base_audio_payload_set_frame_based
                               (<em class="parameter"><code><a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> *rtpbaseaudiopayload</code></em>);</pre>
<p>Tells <a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> that the child element is for a frame based
audio codec</p>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-set-frame-based.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>rtpbaseaudiopayload</p></td>
<td class="parameter_description"><p>a pointer to the element.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtp-base-audio-payload-set-frame-options"></a><h3>gst_rtp_base_audio_payload_set_frame_options ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtp_base_audio_payload_set_frame_options
                               (<em class="parameter"><code><a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> *rtpbaseaudiopayload</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> frame_duration</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> frame_size</code></em>);</pre>
<p>Sets the options for frame based audio codecs.</p>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-set-frame-options.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>rtpbaseaudiopayload</p></td>
<td class="parameter_description"><p>a pointer to the element.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>frame_duration</p></td>
<td class="parameter_description"><p>The duraction of an audio frame in milliseconds.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>frame_size</p></td>
<td class="parameter_description"><p>The size of an audio frame in bytes.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtp-base-audio-payload-set-sample-based"></a><h3>gst_rtp_base_audio_payload_set_sample_based ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtp_base_audio_payload_set_sample_based
                               (<em class="parameter"><code><a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> *rtpbaseaudiopayload</code></em>);</pre>
<p>Tells <a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> that the child element is for a sample based
audio codec</p>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-set-sample-based.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>rtpbaseaudiopayload</p></td>
<td class="parameter_description"><p>a pointer to the element.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtp-base-audio-payload-set-sample-options"></a><h3>gst_rtp_base_audio_payload_set_sample_options ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtp_base_audio_payload_set_sample_options
                               (<em class="parameter"><code><a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> *rtpbaseaudiopayload</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_size</code></em>);</pre>
<p>Sets the options for sample based audio codecs.</p>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-set-sample-options.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>rtpbaseaudiopayload</p></td>
<td class="parameter_description"><p>a pointer to the element.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sample_size</p></td>
<td class="parameter_description"><p>Size per sample in bytes.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtp-base-audio-payload-get-adapter"></a><h3>gst_rtp_base_audio_payload_get_adapter ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstAdapter.html#GstAdapter-struct"><span class="returnvalue">GstAdapter</span></a> *
gst_rtp_base_audio_payload_get_adapter
                               (<em class="parameter"><code><a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> *rtpbaseaudiopayload</code></em>);</pre>
<p>Gets the internal adapter used by the depayloader.</p>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-get-adapter.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>rtpbaseaudiopayload</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-get-adapter.returns"></a><h4>Returns</h4>
<p>a <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstAdapter.html#GstAdapter-struct"><span class="type">GstAdapter</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtp-base-audio-payload-push"></a><h3>gst_rtp_base_audio_payload_push ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
gst_rtp_base_audio_payload_push (<em class="parameter"><code><a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> *baseaudiopayload</code></em>,
                                 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> timestamp</code></em>);</pre>
<p>Create an RTP buffer and store <em class="parameter"><code>payload_len</code></em>
 bytes of <em class="parameter"><code>data</code></em>
 as the
payload. Set the timestamp on the new buffer to <em class="parameter"><code>timestamp</code></em>
 before pushing
the buffer downstream.</p>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-push.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>baseaudiopayload</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTPBasePayload.html" title="GstRTPBasePayload"><span class="type">GstRTPBasePayload</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>data to set as payload. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=payload_len]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>payload_len</p></td>
<td class="parameter_description"><p>length of payload</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>timestamp</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-push.returns"></a><h4>Returns</h4>
<p> a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstFlowReturn"><span class="type">GstFlowReturn</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtp-base-audio-payload-flush"></a><h3>gst_rtp_base_audio_payload_flush ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
gst_rtp_base_audio_payload_flush (<em class="parameter"><code><a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> *baseaudiopayload</code></em>,
                                  <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> payload_len</code></em>,
                                  <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> timestamp</code></em>);</pre>
<p>Create an RTP buffer and store <em class="parameter"><code>payload_len</code></em>
 bytes of the adapter as the
payload. Set the timestamp on the new buffer to <em class="parameter"><code>timestamp</code></em>
 before pushing
the buffer downstream.</p>
<p>If <em class="parameter"><code>payload_len</code></em>
 is -1, all pending bytes will be flushed. If <em class="parameter"><code>timestamp</code></em>
 is
-1, the timestamp will be calculated automatically.</p>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-flush.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>baseaudiopayload</p></td>
<td class="parameter_description"><p>a <a class="link" href="GstRTPBasePayload.html" title="GstRTPBasePayload"><span class="type">GstRTPBasePayload</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>payload_len</p></td>
<td class="parameter_description"><p>length of payload</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>timestamp</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-flush.returns"></a><h4>Returns</h4>
<p> a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstFlowReturn"><span class="type">GstFlowReturn</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-rtp-base-audio-payload-set-samplebits-options"></a><h3>gst_rtp_base_audio_payload_set_samplebits_options ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_rtp_base_audio_payload_set_samplebits_options
                               (<em class="parameter"><code><a class="link" href="GstRTPBaseAudioPayload.html" title="GstRTPBaseAudioPayload"><span class="type">GstRTPBaseAudioPayload</span></a> *rtpbaseaudiopayload</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_size</code></em>);</pre>
<p>Sets the options for sample based audio codecs.</p>
<div class="refsect3">
<a name="gst-rtp-base-audio-payload-set-samplebits-options.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>rtpbaseaudiopayload</p></td>
<td class="parameter_description"><p>a pointer to the element.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sample_size</p></td>
<td class="parameter_description"><p>Size per sample in bits.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GstRTPBaseAudioPayload-struct"></a><h3>struct GstRTPBaseAudioPayload</h3>
<pre class="programlisting">struct GstRTPBaseAudioPayload;</pre>
</div>
<hr>
<div class="refsect2">
<a name="GstRTPBaseAudioPayloadClass"></a><h3>struct GstRTPBaseAudioPayloadClass</h3>
<pre class="programlisting">struct GstRTPBaseAudioPayloadClass {
  GstRTPBasePayloadClass parent_class;
};
</pre>
<p>Base class for audio RTP payloader.</p>
<div class="refsect3">
<a name="GstRTPBaseAudioPayloadClass.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody></tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GstRTPBaseAudioPayload.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GstRTPBaseAudioPayload--buffer-list"></a><h3>The <code class="literal">“buffer-list”</code> property</h3>
<pre class="programlisting">  “buffer-list”              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Use Buffer Lists.</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.28</div>
</body>
</html>